/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package myetl;

import java.io.UnsupportedEncodingException;
import java.util.logging.Level;
import java.util.logging.Logger;

public class ThaiUtilities {
    public ThaiUtilities() {}



    public static String ASCII2Unicode(String ascii) {
        try {
            byte[] b = ascii.getBytes();
            String unicode = new String(ascii.getBytes(),"Windows-874");
            return unicode;
        } catch (UnsupportedEncodingException ex) {
            Logger.getLogger(ThaiUtilities.class.getName()).log(Level.SEVERE, null, ex);
        }
        return "";
    }
}

